package com.lanou.beautifulwardrobe.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.lanou.beautifulwardrobe.R;

/**
 * Created by dllo on 15/11/3.
 */
public class LoginActivity extends Activity implements View.OnClickListener {
    private Button loginBtn, loginReister;
    private TextView loginForgetPwd;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);
        initView();
    }

    private void initView() {
        loginBtn = (Button) findViewById(R.id.loginBtn);
        loginReister = (Button) findViewById(R.id.loginRegister);
        loginForgetPwd = (TextView) findViewById(R.id.loginForgetPwd);
        listener();
    }

    private void listener() {
        loginBtn.setOnClickListener(this);
        loginReister.setOnClickListener(this);
        loginForgetPwd.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.loginBtn:

                break;
            case R.id.loginRegister:
                Intent registerIntent = new Intent(this, RegisterActivity.class);
                startActivity(registerIntent);
                break;
            case R.id.loginForgetPwd:
                Intent forgetIntent = new Intent(this, RequsetActivity.class);
                startActivity(forgetIntent);
                break;
        }
    }
}
